package com.wiloon.java8x.dataImport;

import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * Created by Administrator on 2015/5/26.
 */
public class DataItem {
    String tableName;
    String sequenceName;
    String sequenceColumn;
    List<DataCell> values;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSequenceName() {
        return sequenceName;
    }

    public void setSequenceName(String sequenceName) {
        this.sequenceName = sequenceName;
    }

    public List<DataCell> getValues() {
        return values;
    }

    public void setValues(List<DataCell> values) {
        this.values = values;
    }

    public String getSequenceColumn() {
        return sequenceColumn;
    }

    public void setSequenceColumn(String sequenceColumn) {
        this.sequenceColumn = sequenceColumn;
    }

    public boolean hasSequencedColumn() {
        if (!StringUtils.isEmpty(sequenceName) && !StringUtils.isEmpty(sequenceColumn)) {
            return true;
        }
        return false;
    }
}
